package com.weaponlin;

import java.util.stream.Stream;

public class J9Test {

    public static void main(String[] args) {
//        ProcessHandle p = ProcessHandle.current();
//        System.out.println("Current process Id: " + p.pid());

        Stream.of(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
                .takeWhile(i -> i < 5)
                .forEach(System.out::println);
        
    }

}
